package com.hh.org.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hh.basic.util.PageList;
import com.hh.org.domain.SdDetail;
import com.hh.org.domain.SdType;
import com.hh.org.query.SdDetailQuery;
import com.hh.org.service.ISdDetailService;
import com.hh.org.mapper.SdDetailMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author 35278
* @description 针对表【t_systemdictionarydetail】的数据库操作Service实现
* @createDate 2022-06-09 20:19:46
*/
@Service
public class SdDetailServiceImpl extends ServiceImpl<SdDetailMapper, SdDetail>
    implements ISdDetailService {

    @Resource
    private SdDetailMapper sdDetailMapper;

    @Override
    public PageList<SdDetail> queryPage(SdDetailQuery sdDetailQuery) {
        return new PageList<>(sdDetailMapper.getTotal(sdDetailQuery),
                sdDetailMapper.queryPage(sdDetailQuery)
        );
    }
}




